package his.controller;


import his.entity.PatientCosts;
import his.service.CheckSpendService;
import org.example.his.common.api.CommonResponse;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import java.util.List;

@Controller
@RequestMapping("/expense/check_spend/")
public class CheckSpendController {
    @Autowired
    CheckSpendService checkSpendService;

    @PostMapping("get_spend_list")
    @ResponseBody
    public CommonResponse<List<PatientCosts>> get_costs_list(int CaseNumber , String RealName ){
        return checkSpendService.get_costs_list(CaseNumber , RealName);
    }
}
